home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global digitalis, game3level, WhichBug, TxtCursor, TRIAL, isaid, imdone, singit
- set imdone to 0
- set TRIAL to 1
- set WhichBug to 1
- set isaid to 1
- set TRIAL to 1
- set WhichBug to 1
- if value(game3level) = 0 then
- set game3level to 1
- end if
- set digitalis to []
- set ref to the number of cast "digit0"
- repeat with xxx = 0 to 40
- add(digitalis, ref + xxx)
- end repeat
- set singit to 0
- end
-
- on RotateCursor
- global TxtCursor, cursorcycle, digitalis, cursortime, highlow, changer
- if the timer > cursortime then
- set cursortime to the timer + 15
- set highlow to 1 - highlow
- set rent to value(changer)
- if rent = 0 then
- set the castNum of sprite TxtCursor to getAt(digitalis, 16 + highlow)
- else
- set the castNum of sprite TxtCursor to getAt(digitalis, 1 + (highlow * 28) + rent)
- end if
- end if
- end
-
- on notright
- global TRIAL, WhichBug, TxtCursor, bugnumber
- set onesdigit to 42 + WhichBug
- set TxtCursor to onesdigit
- set the castNum of sprite onesdigit to the number of cast "FirstCursor"
- updateStage()
- set the visible of sprite onesdigit to 1
- if TRIAL = 1 then
- play frame "try again"
- set TRIAL to TRIAL + 1
- else
- if TRIAL = 2 then
- set bottombug to WhichBug + 3
- set bugname to the name of cast the castNum of sprite bottombug
- set bugnumber to value(chars(bugname, 4, length(bugname)))
- set flashme to bugnumber + 9
- set oldink to the ink of sprite flashme
- repeat with xxx = 1 to 10
- set the ink of sprite flashme to 4
- updateStage()
- repeat with yyy = 1 to 100
- end repeat
- set the ink of sprite flashme to 5
- updateStage()
- repeat with yyy = 1 to 100
- end repeat
- end repeat
- set the ink of sprite flashme to oldink
- set TRIAL to TRIAL + 1
- else
- if TRIAL = 3 then
- set correctstr to EMPTY & getAt(bugnumber, WhichBug)
- set holdchar1 to char 1 of correctstr
- set holdchar2 to char 2 of correctstr
- set the castNum of sprite onesdigit to the number of cast ("digit" & holdchar1)
- if holdchar2 = EMPTY then
- set the visible of sprite onesdigit to 0
- set the castNum of sprite onesdigit to the number of cast "tens"
- else
- set the castNum of sprite onesdigit to the number of cast ("digit" & holdchar2)
- set the visible of sprite onesdigit to 1
- end if
- set TxtCursor to 0
- updateStage()
- end if
- end if
- end if
- end
-